<template>
  <div>
    <el-form>
      <el-col :span="8">
        <el-form-item label="Path on the Node" required>
          <el-input
            v-model="spec.local.path"
            clearable
            placeholder="eg: /data"
          />
        </el-form-item>
      </el-col>
    </el-form>
  </div>
</template>

<script setup lang="ts">
import { onMounted, ref } from "vue";

const spec = defineModel<any>("spec");

const localObj = ref({
  path: ""
});

onMounted(() => {
  if (!spec.value.local) {
    spec.value.local = localObj.value;
  }
});
</script>

<style scoped></style>
